<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Iframe Communicator - Iframe Demo</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      padding: 20px;
    }
    nav {
      margin: 20px 0;
    }
    a {
      display: inline-block;
      margin-right: 15px;
      padding: 8px 12px;
      text-decoration: none;
      color: #007bff;
      border: 1px solid #007bff;
      border-radius: 4px;
    }
    a:hover {
      background-color: #007bff;
      color: white;
    }
    .content {
      margin: 20px 0;
      padding: 15px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
  </style>
</head>
<body>
  <h1>Iframe Demo Page</h1>
  <p>This page is inside an iframe and communicates with the host page.</p>
  
  <nav>
    <a href="/" class="nav-link">Home</a>
    <a href="/page1" class="nav-link">Page 1</a>
    <a href="/page2" class="nav-link">Page 2</a>
    <a href="/page3" class="nav-link">Page 3</a>
  </nav>
  
  <h3>Hash 路由测试</h3>
  <nav>
    <a href="#/home" class="hash-link">#Home</a>
    <a href="#/profile" class="hash-link">#Profile</a>
    <a href="#/settings" class="hash-link">#Settings</a>
    <a href="#/about" class="hash-link">#About</a>
  </nav>
  
  <div class="content" id="page-content">
    Welcome to the home page!
  </div>

  <script type="module" src="/main.js"></script>
</body>
</html>
